package equations;

import java.util.ArrayList;



public class SubtractionStub implements MathFactsCategory {
	
	private ArrayList<Problem> problems1x;
	private ArrayList<Problem> problems2x;
	private ArrayList<Problem> problems3x;
	private ArrayList<Problem> problems4x;
	private ArrayList<Problem> problems5x;
	private ArrayList<Problem> problems6x;
	private ArrayList<Problem> problems7x;
	private ArrayList<Problem> problems8x;
	private ArrayList<Problem> problems9x;
	
	public SubtractionStub(){
		//1x equations
		problems1x=new ArrayList<Problem>();
		problems1x.add(new Problem(" 4 - 1 = ","3"));
		problems1x.add(new Problem(" 8 - 1 = ","7"));
		problems1x.add(new Problem(" 3 - 1 = ","2"));
		problems1x.add(new Problem(" 10 - 1 = ","9"));
		problems1x.add(new Problem(" 7 - 1 = ","6"));
		problems1x.add(new Problem(" 5 - 1 = ","4"));
		problems1x.add(new Problem(" 9 - 1 = ","8"));
		problems1x.add(new Problem(" 2 - 1 = ","1"));
		problems1x.add(new Problem(" 6 - 1 = ","5"));
		
		//2x equations
		problems2x = new ArrayList<Problem>();
		problems2x.add(new Problem(" 6 - 2 = ","4"));
		problems2x.add(new Problem(" 8 - 2 = ","6"));
		problems2x.add(new Problem(" 3 - 2 = ","1"));
		problems2x.add(new Problem(" 9 - 2 = ","7"));	
		problems2x.add(new Problem(" 5 - 2 = ","3"));	
		problems2x.add(new Problem(" 10 - 2 = ","8"));
		problems2x.add(new Problem(" 4 - 2 = ","2"));
		problems2x.add(new Problem(" 7 - 2 = ","5"));
		problems2x.add(new Problem(" 11 - 2 = ","9"));
		
		//3x equations
		problems3x = new ArrayList<Problem>();
		problems3x.add(new Problem(" 5 - 3 = ","2"));
		problems3x.add(new Problem(" 8 - 3 = ","5"));
		problems3x.add(new Problem(" 6 - 3 = ", "3"));
		problems3x.add(new Problem(" 12 - 3 = ", "9"));
		problems3x.add(new Problem(" 4 - 3 = ", "1"));
		problems3x.add(new Problem(" 9 - 3 = ", "6"));
		problems3x.add(new Problem(" 11 - 3 = ", "8"));
		problems3x.add(new Problem(" 7 - 3 = ", "4"));
		problems3x.add(new Problem(" 10 - 3 = ", "7"));

		//4x equations
		problems4x = new ArrayList<Problem>();
		problems4x.add(new Problem(" 10 - 4 = ", "6"));
		problems4x.add(new Problem(" 13 - 4 = ", "9"));
		problems4x.add(new Problem(" 8 - 4 = ", "4"));
		problems4x.add(new Problem(" 5 - 4 = ", "1"));
		problems4x.add(new Problem(" 7 - 4 = ", "3"));
		problems4x.add(new Problem(" 11 - 4 = ", "7"));
		problems4x.add(new Problem(" 6 - 4 = ", "2"));
		problems4x.add(new Problem(" 9 - 4 = ", "5"));
		problems4x.add(new Problem(" 12 - 4 = ","8"));
		
		//5x equations
		problems5x = new ArrayList<Problem>();
		problems5x.add(new Problem(" 13 - 5 = ", "8"));
		problems5x.add(new Problem(" 7 - 5 = ", "2"));
		problems5x.add(new Problem(" 10 - 5 = ", "5"));
		problems5x.add(new Problem(" 12 - 5 = ", "7"));
		problems5x.add(new Problem(" 6 - 5 = ", "1"));
		problems5x.add(new Problem(" 14 - 5 = ", "9"));
		problems5x.add(new Problem(" 8 - 5 = ", "3"));
		problems5x.add(new Problem(" 11 - 5 = ", "6"));
		problems5x.add(new Problem(" 9 - 5 = ", "4"));
		
		//6x equations
		problems6x = new ArrayList<Problem>();
		problems6x.add(new Problem(" 15 - 6 = ", "9"));
		problems6x.add(new Problem(" 12 - 6 = ", "6"));
		problems6x.add(new Problem(" 7 - 6 = ", "1"));
		problems6x.add(new Problem(" 10 - 6 = ", "4"));
		problems6x.add(new Problem(" 14 - 6 = ", "6"));
		problems6x.add(new Problem(" 8 - 6 = ", "2"));
		problems6x.add(new Problem(" 13 - 6 = ", "6"));
		problems6x.add(new Problem(" 9 - 6 = ", "3"));
		problems6x.add(new Problem(" 11 - 6 = ", "5"));

		//7x equations
		problems7x = new ArrayList<Problem>();
		problems7x.add(new Problem(" 8 - 7 = ", "1"));
		problems7x.add(new Problem(" 11 - 7 = ","4"));
		problems7x.add(new Problem(" 16 - 7 = ", "9"));
		problems7x.add(new Problem(" 10 - 7 = ", "3"));
		problems7x.add(new Problem(" 14 - 7 = ", "7"));
		problems7x.add(new Problem(" 12 - 7 = ", "5"));
		problems7x.add(new Problem(" 9 - 7 = ", "2"));
		problems7x.add(new Problem(" 13 - 7 = ", "6"));
		problems7x.add(new Problem(" 15 - 7 = ", "8"));
		
		//8x equations
		problems8x = new ArrayList<Problem>();
		problems8x.add(new Problem(" 13 - 8 = ", "5"));
		problems8x.add(new Problem(" 9 - 8 = ", "1"));
		problems8x.add(new Problem(" 14 - 8 = ", "6"));
		problems8x.add(new Problem(" 10 - 8 = ", "2"));
		problems8x.add(new Problem(" 16 - 8 = ", "8"));
		problems8x.add(new Problem(" 11 - 8 = ", "3"));
		problems8x.add(new Problem(" 15 - 8 = ", "7"));
		problems8x.add(new Problem(" 12 - 8 = ", "4"));
		problems8x.add(new Problem(" 17 - 8 = ", "9"));
	
		//9x equations
		problems9x = new ArrayList<Problem>();
		problems9x.add(new Problem(" 16 - 9 = ", "7"));
		problems9x.add(new Problem(" 12 - 9 = ", "3"));
		problems9x.add(new Problem(" 10 - 9 = ","1"));
		problems9x.add(new Problem(" 17 - 9 = ","8"));
		problems9x.add(new Problem(" 13 - 9 = ", "4"));
		problems9x.add(new Problem(" 18 - 9 = ", "9"));
		problems9x.add(new Problem(" 15 - 9 = ", "6"));
		problems9x.add(new Problem(" 11 - 9 = ", "2"));
		problems9x.add(new Problem(" 14 - 9 = ","5"));
		
	}

	@Override
	public ArrayList<Problem> getProblem1() {
		return problems1x;
	}

	@Override
	public ArrayList<Problem> getProblem2() {
		return problems2x;
	}

	@Override
	public ArrayList<Problem> getProblem3() {
		return problems3x;
	}

	@Override
	public ArrayList<Problem> getProblem4() {
		return problems4x;
	}

	@Override
	public ArrayList<Problem> getProblem5() {
		return problems5x;
	}

	@Override
	public ArrayList<Problem> getProblem6() {
		return problems6x;
	}

	@Override
	public ArrayList<Problem> getProblem7() {
		return problems7x;
	}

	@Override
	public ArrayList<Problem> getProblem8() {
		return problems8x;
	}

	@Override
	public ArrayList<Problem> getProblem9() {
		return problems9x;
	}
	
	@Override
	public String toString(){
		return "Subtraction";
	}
	

}
